const menu = {
	MU_1: {
		name: 'material-upload',
		text: '物料上传',
		sidderClass: 'icon-ddex-materiel',
		mainClass: 'icon-ddex-upload-file upload',
	},

	DE_2: {
		name: 'data-editor',
		text: '数据编辑',
		sidderClass: 'icon-ddex-data',
		mainClass: 'icon-ddex-edits edit',
	},

	SR_3: {
		name: 'stat-report',
		text: '统计报告',
		sidderClass: 'icon-ddex-count',
		mainClass: 'icon-ddex-Statistics report',
	},

	UA_4: {
		name: 'user-account',
		text: '账号管理',
		sidderClass: 'icon-ddex-Manual',
		mainClass: '',
	}
}

module.exports = {

	menu,

	userMenuList(userInfo, type) {
		if (!userInfo)
			return []
		let list = [
			menu['MU_1'],
			menu['DE_2'],
			// menu['SR_3']
		]
		// if (type == 'sidder') {
		// 	list.push(menu['UA_4'])
		// }
		return list
	},
}